<script>
function foo()
{
    alert(document.URL);
}
</script>
<div>resource.html</div>
